﻿@model Wiwi.ViewModels.Forgotpassword
@{
    ViewBag.Title = "PasswordForgot";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

 <script type="text/javascript">
     // 'Flying' Labels
     $(document).ready(function () {
         $('#wiwi-sign-up .editor-label label').css('display', 'none');

         $('input').focus(function () {
             var theId = $(this).attr('id');
             $('label.' + theId).fadeIn('fast');
         });

         $('input').blur(function () {
             var theId = $(this).attr('id');
             $('label.' + theId).fadeOut('medium');
         });

     });

</script>

  @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")

<div class="grid_6" id="wiwi-sign-in">    

@using SSB.Web.Mvc.Html
@using (Html.BeginForm("PasswordForgot", "Account", null, FormMethod.Post, new { @id="wiwi-sign-up" })) {

       <h5>Reset Password</h5>
/*
    @Html.ValidationSummary(true, "")
if (Model != null)
{
    if (Model.Respcode != 0)
    {
        if (Model.Respcode == 1)
        {
            <div class="editor-field">
                <span >@Model.msg</span>
            </div>
        }
    }
}
     * */

<div class="editor-label">
       <label class="userID" for="userID">User Name</label> 
        @Html.TextBoxFor(m => m.userID, new { @placeholder = "Your User Name" })       
</div>
    
 <div class="captcha editor-label">
            
    @Html.MvcCaptcha()
    <label class="CaptchaValue" for="CaptchaValue">Captcha </label> 
    @Html.TextBoxFor(m => m.CaptchaValue, new { @placeholder = "Enter Captcha Letters" })
    <div class="helper-tip"> 
    @Html.ValidationMessageFor(m => m.CaptchaValue)
    </div> 
</div>    
    
       <input type="submit" id="submit-button" value="Submit" /> 
    <div class="clear"></div>

   if (Model != null)
   {
       if (Model.Respcode == 0)
       {
            <div class="editor-label">
                <span >@Model.msg</span>
            </div>
            }
        }
        
    }

    </div>